package com.tansuo365.test1.bean.otherbean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.util.Date;

/**
 * 物料分类
 * 当物料表有变动时,后续的增删物料tree分类菜单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WuliaoTree {
    private Integer id;

    private String wuliaofenlei;

    private Integer p_id;

    private Integer state;

    private String icon;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatetime;

    @Transient
    private String sort;
    @Transient
    private String order;

}